package com.hulk.ratel.persistence.entity

import java.util.Date
import com.baomidou.mybatisplus.annotations.TableField
import com.baomidou.mybatisplus.annotations.TableId
import com.baomidou.mybatisplus.enums.IdType
import com.baomidou.mybatisplus.activerecord.Model
import com.baomidou.mybatisplus.annotations.TableName
import java.io.Serializable

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2018-08-29
 */
@TableName("t_errcode_convert")
class TErrcodeConvert : Model<TErrcodeConvert>() {

    @TableId(value = "id", type = IdType.ID_WORKER)
    var id: Long? = null
    @TableField("org_code")
    var orgCode: String? = null
    @TableField("org_resp_code")
    var orgRespCode: String? = null
    @TableField("org_resp_desc")
    var orgRespDesc: String? = null
    @TableField("resp_code")
    var respCode: String? = null
    @TableField("resp_desc")
    var respDesc: String? = null
    /**
     * Y-成功标志
            N-失败标志
            
     */
    @TableField("err_flag")
    var errFlag: String? = null
    /**
     * Y-启用
            N-关闭
     */
    @TableField("use_flag")
    var useFlag: String? = null
    @TableField("created_by")
    var createdBy: String? = null
    @TableField("created_time")
    var createdTime: Date? = null
    @TableField("updated_by")
    var updatedBy: String? = null
    @TableField("updated_time")
    var updatedTime: Date? = null
    @TableField("ori_id")
    var oriId: String? = null
    @TableField("tenant_id")
    var tenantId: String? = null
    @TableField("lock_version")
    var lockVersion: Long? = null
    var rsv1: String? = null
    var rsv2: String? = null
    var rsv3: String? = null


    override fun pkVal(): Serializable? {
        return id
    }

    override fun toString(): String {
        return "TErrcodeConvert{" +
        ", id=" + id +
        ", orgCode=" + orgCode +
        ", orgRespCode=" + orgRespCode +
        ", orgRespDesc=" + orgRespDesc +
        ", respCode=" + respCode +
        ", respDesc=" + respDesc +
        ", errFlag=" + errFlag +
        ", useFlag=" + useFlag +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", oriId=" + oriId +
        ", tenantId=" + tenantId +
        ", lockVersion=" + lockVersion +
        ", rsv1=" + rsv1 +
        ", rsv2=" + rsv2 +
        ", rsv3=" + rsv3 +
        "}"
    }
}
